package com.huarui.saleInvoice.model;

import java.math.BigDecimal;
import java.util.Date;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.ewaf.framework.model.BaseDataObject;

public class SaleInvoice extends BaseDataObject {

	private static final long serialVersionUID = -713383448014210425L;
	public static final Integer STATUS_DRAFT=0;
	public static final Integer STATUS_FORMAL=1;
	private Integer id;
	/**
	 * 公司ID
	 */
	private Integer companyId;
	/**
	 *  客户ID
	 */
	private Integer customerId;
	
	/**
	 * 单据号
	 * */
	private String code;
	/**
	 * 发票号
	 */
	private String codeOfSeller;
	/**
	 *  发票类型
	 */
	private Integer invoiceType;
	/**
	 * 收款金额
	 */
	private BigDecimal amount;
	/**
	 * 状态
	 */
	private Integer status;
	/**
	 * 实际收款人
	 */
	private String actualReceiver;
	/**
	 *  实际收款日期
	 */
	private Date gmtActualReceive;
	/**
	 * 建单人
	 */
	private Integer creator;
	/**
	 *  建单时间
	 */
	private Date gmtCreate;
	/**
	 * 提交人
	 */
	private Integer receiver;
	/**
	 * 提交时间
	 */
	private Date gmtReceive;
	
	private Integer workFlowId;
	
	private Integer currentorId;
	public SaleInvoice(){
		
		
	}

	@Override
	public Integer getId() {
		return id;
	}

	public Integer getCompanyId() {
		return companyId;
	}

	public void setCompanyId(Integer companyId) {
		this.companyId = companyId;
	}

	public Integer getCustomerId() {
		return customerId;
	}

	public void setCustomerId(Integer customerId) {
		this.customerId = customerId;
	}

	public String getCodeOfSeller() {
		return codeOfSeller;
	}

	public void setCodeOfSeller(String codeOfSeller) {
		this.codeOfSeller = codeOfSeller;
	}

	public Integer getInvoiceType() {
		return invoiceType;
	}

	public void setInvoiceType(Integer invoiceType) {
		this.invoiceType = invoiceType;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}


	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getCreator() {
		return creator;
	}

	public void setCreator(Integer creator) {
		this.creator = creator;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Integer getReceiver() {
		return receiver;
	}

	public void setReceiver(Integer receiver) {
		this.receiver = receiver;
	}



	public Date getGmtReceive() {
		return gmtReceive;
	}

	public void setGmtReceive(Date gmtReceive) {
		this.gmtReceive = gmtReceive;
	}

	public void setId(Integer id) {
		this.id = id;
	}
	
	public Integer getWorkFlowId() {
		return workFlowId;
	}

	public void setWorkFlowId(Integer workFlowId) {
		this.workFlowId = workFlowId;
	}

	public Integer getCurrentorId() {
		return currentorId;
	}

	public void setCurrentorId(Integer currentorId) {
		this.currentorId = currentorId;
	}

	@Override
	public String toString() {
		return ReflectionToStringBuilder.toString(this); 
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getActualReceiver() {
		return actualReceiver;
	}

	public void setActualReceiver(String actualReceiver) {
		this.actualReceiver = actualReceiver;
	}

	public Date getGmtActualReceive() {
		return gmtActualReceive;
	}

	public void setGmtActualReceive(Date gmtActualReceive) {
		this.gmtActualReceive = gmtActualReceive;
	}



}
